package com.wwforever.eclipsebuildunity3d;

//import android.content.Context;
//import android.view.View;
//import android.content.Intent;
import android.os.Bundle;

import com.unity3d.player.UnityPlayer;
import com.unity3d.player.UnityPlayerActivity;

public class MainActivity1 extends UnityPlayerActivity {
    
	//type = 0 -> dice, type = 1 -> yut
	//public static int type;
	//get value
	//private Intent myIntent;
    //call unity
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	
        super.onCreate(savedInstanceState);
        //myIntent = new Intent();
    	//myIntent= new Intent(getApplicationContext(), MainActivity.class);
    	//getBaseContext();
    	//myIntent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
    }
    //get value and call android view
    //value = strMsg
   
    public void JNICall_U(String strMsg) {
    	  String strSendMsg = strMsg;
    	  UnityPlayer.UnitySendMessage("PluginEclipseManager", "JNICall_J", strSendMsg);
    	  
    	  //((MainActivity)MainActivity.mContext).callActivity();
    	  //call android view
    	 } 
    /*
    public void JNICall_B() {
  	startActivity(myIntent);
  	 }
  	 */ 
}